package com.lcx.movie.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lcx.movie.entity.Actor;
import com.lcx.movie.mapper.ActorMapper;
import com.lcx.movie.service.ActorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * @author 李丽君
 * @version 1.0
 * @Description 演员实现类
 * @date 2025/3/12 10:19
 */
@Service
public class ActorServiceImpl extends ServiceImpl<ActorMapper, Actor> implements ActorService {
    @Autowired
    private ActorMapper actorMapper;
    /**
     * 新增演员信息
     * @param actor 演员对象
     * @return 受影响的行数
     */
    @Override
    public int insertActor(Actor actor){
        return actorMapper.insert(actor);
    }
}
